.TH std::match_results::empty 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::match_results::empty \- std::match_results::empty

.SH Synopsis
   bool empty() const;                \fI(since C++11)\fP
                                      \fI(until C++20)\fP
   [[nodiscard]] bool empty() const;  \fI(since C++20)\fP

   Checks whether the match was successful.

.SH Parameters

   \fI(none)\fP

.SH Return value

   true if *this represents the result of a failed match, false otherwise, i.e. size()
   == 0.

.SH Exceptions

   May throw implementation-defined exceptions.

.SH Complexity

   Constant.

.SH See also

   size returns the number of matches in a fully-established result state
        \fI(public member function)\fP
